home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / lilo.config < prev    next >
Text File  |  2008-05-15  |  719b  |  49 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. action=$1
  6. version=$2
  7.  
  8. # debconf
  9. . /usr/share/debconf/confmodule
  10. db_version 2.0
  11.  
  12. isfresh=0
  13. have_to_run=0
  14.  
  15. if [ ! -f /etc/lilo.conf ]; then
  16.     isfresh=1
  17.     db_text high lilo/new-config || true
  18.     db_go
  19. else
  20.     # Check for deprecated PATH. Bug#267538
  21.     if grep -q "^bitmap=/usr/share/lilo/contrib" /etc/lilo.conf; then
  22.         db_beginblock
  23.         db_text high lilo/bad_bitmap || true
  24.         db_endblock
  25.         db_go
  26.     fi
  27. fi
  28.  
  29. if [ x"$isfresh" = x"0" ]; then
  30.     if [ -e /boot/boot.b ]; then    
  31.         have_to_run=1
  32.         db_beginblock
  33.         db_text high lilo/upgrade || true
  34.         db_endblock
  35.         db_go
  36.     fi
  37. fi
  38.  
  39. #db_set lilo/runme = false
  40.  
  41. if [ x"$have_to_run" != x"0" ]; then
  42.     db_beginblock    
  43.      db_input high lilo/runme || true
  44.     db_endblock
  45.     db_go
  46. fi
  47.  
  48. exit 0
  49.